package com.jgp.config;

/**
 * 项目   gavin-project
 * 作者   loufei
 * 时间   2019-08-22
 */
public enum  GnCacheStyle {
    
    EXPIRE_AT_5S(GnBuildInConstants._5S),
    EXPIRE_AT_10S(GnBuildInConstants._10S),
    EXPIRE_AT_30S(GnBuildInConstants._30S),
    EXPIRE_AT_1M(GnBuildInConstants._1M),
    EXPIRE_AT_5M(GnBuildInConstants._5M),
    EXPIRE_AT_10M(GnBuildInConstants._10M),
    EXPIRE_AT_30M(GnBuildInConstants._30M),
    EXPIRE_AT_1H(GnBuildInConstants._1H),
    EXPIRE_AT_1D(GnBuildInConstants._1D);
    
    private int ttl;
    
    GnCacheStyle(int ttl) {
        this.ttl = ttl;
    }
    
    public int getTtl() {
        return ttl;
    }
    
}
